﻿@typeparam T where T: Enum

<div class="mud-width-full d-flex justify-end">
    <MudButtonGroup OverrideStyles="false">
        @foreach (int value in Enum.GetValues(Type))
        {
            <MudButton Color="Color.Primary" Size="Size.Small" DisableElevation="true" Variant="@(value == Convert.ToInt32(Value) ? Variant.Filled : Variant.Outlined)" OnClick="() => Value = (T)Enum.ToObject(Type, value)">@Enum.GetName(Type, value)</MudButton>
        }
    </MudButtonGroup>
</div>
